package com.ccys.db.vo.web.inventory;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author：XLY
 * @Date：2024/1/17 0017
 */
@Data
public class ExchangeOrderDetailVo {

    private String id;

    private String code;

    private String supplier;

    private String groupName;

    private String supplierPhone;

    private String supplierEmail;

    private String supplierAddress;

    private Long deliveryDate;

    private Long exchangeDate;

    private List<ExchangeVo> exchangeList;

    private List<ReceiveVo> purchaseList;


    @Data
    public static class ExchangeVo{
        private String batchNo;

        private String productName;

        private String pharmacyName;

        private String exchangeDescription;

        private Double purchasePrice;

        private Integer totalQuantity;

        private Integer availableQuantity;

        private Integer exchangeQuantity;
    }


    @Data
    public static class ReceiveVo{
        private String batchNo;

        private String productName;

        private String pharmacyName;

        private String purchaseDescription;

        private Date expirationDate;

        private Double lastPurchasePrice;

        private Double priceUnit;

        private Integer quantity;

        private Double amount;
    }
}
